import request from '../utils/request'
//添加收货地址
export function save(data) {
  return request({
    url: '/member/receiver/save',
    method: 'post',
    data: data
  })
}

//更新收货地址
export function update(data) {
  return request({
    url: '/member/receiver/update',
    method: 'post',
    data: data
  })
}
//更新收货地址
export function list(params) {
  return request({
    url: '/member/receiver/list',
    method: 'get',
    params: params
  })
}

//更新收货地址
export function del(id) {
    return request({
            url: '/member/receiver/del/'+id,
            method: 'post',
    })
}